package com.feiyu.shopsAndgoods.service.openFeign;

import com.feiyu.common.entity.AddressEntity;
import com.feiyu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "feiyumall-common")
public interface CommonFeignService {
    @PostMapping("/searchAddressById")
    //@RequiresPermissions("product:address:info")
    public R searchAddressById(@RequestBody AddressEntity addressEntity);
}
